package com.banciyuan.bcywebview.biz.main.mainpage.timeline.viewholder;

import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.banciyuan.bcywebview.R;
import com.banciyuan.bcywebview.biz.main.mainpage.timeline.TimelineListAdapter;

/**
 * Created by squall on 2017/4/18.
 */

public class ViewCircle extends RecyclerView.ViewHolder {
    public View viewGoMoreCircle;
    public LinearLayout circle_container;
    public CircleCard[] circleCards;

    public ViewCircle(View convertView) {
        super(convertView);
        viewGoMoreCircle = convertView.findViewById(R.id.view_gomore_circle);
        circle_container = (LinearLayout) convertView.findViewById(R.id.circle_item_container);
        circleCards = new CircleCard[]{
                new CircleCard(circle_container.getChildAt(0)),
                new CircleCard(circle_container.getChildAt(1)),
                new CircleCard(circle_container.getChildAt(2)),
        };

    }

    public class CircleCard {
        public View itemView;
        public ImageView ivCirclePic;
        public TextView tvCircleName;
        public TextView tvCircleSubscribe;
        public TextView tvCircleSubscribed;
        public View viewCircleDelete;

        public CircleCard(View viewParent) {
            this.itemView = viewParent;
            ivCirclePic = (ImageView) viewParent.findViewById(R.id.siv_circle_image);
            tvCircleName = (TextView) viewParent.findViewById(R.id.tv_circle_name);
            tvCircleSubscribed = (TextView) viewParent.findViewById(R.id.tv_circle_subscribed);
            tvCircleSubscribe = (TextView) viewParent.findViewById(R.id.tv_circle_subscribe);
            viewCircleDelete = viewParent.findViewById(R.id.iv_delete_circle);
        }
    }
}
